// @ts-ignore
import styled from "styled-components";
type propsType={
  $userCover?:string
};
const AppStyle=styled.div<propsType>`
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;

  overflow: hidden;
  .nav-head-box{
    display: flex;
    position: relative;
    margin: 0 auto;
    width: 1200px;
    height: 90px;
    border-bottom: 1px solid #f0f0f0;
  }
  .home-head-left{
    display: flex;
    flex: 1;
    line-height: 90px;
  }
  .nav-item-li{
    flex: 1;
    height: 100%;
  }
  .nav-item-a{
    display: block;
    text-align: center;
    font-size: 22px;
    font-weight: 100;
    height: 100%;
  }
  .nav-item-a:hover{
    background-color: var(--theme-color);
    color: var(--theme-white);
  }


  /* 搜索框样式 */
  .head-search{
    position: relative;
    max-width: 300px;
    margin: 0 20px;
  }
  .head-search-input{
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
  /* 用户头像 */
  .user-photo{
    position: relative;
    margin: 0 25px;
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('${(props:propsType)=>props.$userCover?props.$userCover:"https://bucket-yufei.oss-cn-beijing.aliyuncs.com/my_self/image/myHead.jpg"}');
    background-size: 100% 100%;
    border-radius: 50%;
    cursor: pointer;
  }
  .active{
    color: var(--theme-white);
    background: var(--theme-color);
  }
  .user-unlogin{
    position: relative;
    height: min-content;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
  }
  .user-unlogin:hover{
    color: var(--theme-color);
  }

`;

export default AppStyle;
